
package com.cbwl.eoas.cms.model.eoas;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;

import com.cbwl.eoas.common.base.CommonBean;


/**
 * 
 * <p>[描述信息：说明类的基本功能]</p>
 *
 * @author 虞云波 - yuyunbo@3856.cc
 * @version 1.0 Created on 2017年10月20日 下午5:20:25
 */
public class AppMailSendRecordDTO extends CommonBean {

	private static final long serialVersionUID = 2692620367406904810L;
	private java.lang.Long id;
	@Email @Length(max=64)
	private java.lang.String amsrSendEmail;
	@Email @Length(max=64)
	private java.lang.String amsrReceiveEmail;
	@Length(max=300)
	private java.lang.String amsrTitle;
	@Length(max=5)
	private java.lang.String amsrSendType;
	
	private java.util.Date amsrSendTime;
	
	private java.lang.Long amsrSender;
	
	private java.lang.Long amsrReceiver;
	@Length(max=5)
	private java.lang.String amsrSendStatus;
	
	private java.util.Date operateTime;
	
	public void setId(java.lang.Long value) {
		this.id = value;
	}
	
	public java.lang.Long getId() {
		return this.id;
	}
	
	public void setAmsrSendEmail(java.lang.String value) {
		this.amsrSendEmail = value;
	}
	
	public java.lang.String getAmsrSendEmail() {
		return this.amsrSendEmail;
	}
	
	public void setAmsrReceiveEmail(java.lang.String value) {
		this.amsrReceiveEmail = value;
	}
	
	public java.lang.String getAmsrReceiveEmail() {
		return this.amsrReceiveEmail;
	}
	
	public void setAmsrTitle(java.lang.String value) {
		this.amsrTitle = value;
	}
	
	public java.lang.String getAmsrTitle() {
		return this.amsrTitle;
	}
	
	public void setAmsrSendType(java.lang.String value) {
		this.amsrSendType = value;
	}
	
	public java.lang.String getAmsrSendType() {
		return this.amsrSendType;
	}
	
	public void setAmsrSendTime(java.util.Date value) {
		this.amsrSendTime = value;
	}
	
	public java.util.Date getAmsrSendTime() {
		return this.amsrSendTime;
	}
	
	public void setAmsrSender(java.lang.Long value) {
		this.amsrSender = value;
	}
	
	public java.lang.Long getAmsrSender() {
		return this.amsrSender;
	}
	
	public void setAmsrReceiver(java.lang.Long value) {
		this.amsrReceiver = value;
	}
	
	public java.lang.Long getAmsrReceiver() {
		return this.amsrReceiver;
	}
	
	public void setAmsrSendStatus(java.lang.String value) {
		this.amsrSendStatus = value;
	}
	
	public java.lang.String getAmsrSendStatus() {
		return this.amsrSendStatus;
	}
	
	public void setOperateTime(java.util.Date value) {
		this.operateTime = value;
	}
	
	public java.util.Date getOperateTime() {
		return this.operateTime;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("AmsrSendEmail",getAmsrSendEmail())
			.append("AmsrReceiveEmail",getAmsrReceiveEmail())
			.append("AmsrTitle",getAmsrTitle())
			.append("AmsrSendType",getAmsrSendType())
			.append("AmsrSendTime",getAmsrSendTime())
			.append("AmsrSender",getAmsrSender())
			.append("AmsrReceiver",getAmsrReceiver())
			.append("AmsrSendStatus",getAmsrSendStatus())
			.append("OperateTime",getOperateTime())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof AppMailSendRecordDTO == false) {return false;}
		if(this == obj){ return true;}
		AppMailSendRecordDTO other = (AppMailSendRecordDTO)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

